import request from "@/utils/request.js";
import utils from "@/utils/utils.js"
export default {
	pay(params) {
		return request({
			url: 'pay/' + params.bm,
			method: 'post',
			data: params
		})
	},
	
	getPayUrl(params) {
		return request({
			url: 'api/merchant/transaction/beScanned?' + utils.jsonToQuery(params),
			method: 'post',
			header: {
				isToken: false
			}
		})
	},
	
	payResultQuery(params) {
		return request({
			url: 'api/merchant/transaction/payResultQuery?' + utils.jsonToQuery(params),
			method: 'post',
			data: params,
			header: {
				isToken: false
			}
		})
	},
}